package com.ruoyi.act.service.impl;

import com.ruoyi.act.service.ActFormDataService;
import com.ruoyi.common.core.domain.AjaxResult;
import org.activiti.engine.form.FormProperty;
import org.activiti.engine.form.StartFormData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.activiti.engine.FormService;
import java.util.List;

@Service
public class ActFormServiceImpl implements ActFormDataService {
    @Autowired
    private FormService formService;

    public AjaxResult getStartFormData(String id){
        StartFormData startFormData = formService.getStartFormData(id);
        List<FormProperty> formProperties = startFormData.getFormProperties();
        return AjaxResult.success(formProperties);
    }
}
